Computer access security

ABSTRACT

A method is provided for improved computer access security, the method including protecting an access record to prevent password access to a computer via the access record, creating an alternate access record corresponding to the protected record, enabling password access to the computer via the alternate record, providing the alternate record with the access level of the protected record, and configuring the alternate record to indicate a supplemental security program to be executed once a correct password for the alternate record is provided.

FIELD OF THE INVENTION

The present invention relates to computer access security in general, and more particularly to password-based and public/private key-based access protocols.

BACKGROUND OF THE INVENTION

Various computer security protocols have been developed to ensure that only authorized users gain access to a computer. In one basic configuration, a password may be used to gain access. Unfortunately, where the user accesses a computer A from a remote computer B, transmitting the password “in the clear” exposes the system to the risk that an eavesdropper may intercept the password and use it to gain unauthorized access to computer A. In another configuration, a computer B may access a computer A without computer B having to provide a password. This may be done by providing computer B with the necessary public/private keys for encrypted communication with computer A, such as via SSH, and by configuring computer A to not require password access where computer B uses the proper public/private key protocol, allowing computer A to authenticate computer B's identity.

In the UNIX operating system, users who wish to gain access to a computer may be “trusted” users possessing the necessary public/private keys for non-password access to the computer, or “untrusted” users requiring password access. While access to the root directory is particularly sensitive, as this affords the opportunity to control the most critical aspects of the operating system, root access may nonetheless be gained by untrusted users using the basic password access protocol, with all of its risks. While password access to the root may be disabled by setting PermitRootLogin=no in the /etc/ssh/sshd_config file, doing so would render the root inaccessible even to trusted users having the necessary public/private keys. It would be therefore be advantageous to increase the level of security required for untrusted user access without affecting the level of security required for trusted user access.

SUMMARY OF THE INVENTION

The present invention discloses a system and method for improved computer security access whereby password access is disabled for an access record, while an alternate access record is created at the same access level with password access and a supplemental security program. In this manner key-based access is preserved while password-based access security is enhanced.

In one aspect of the present invention a method is provided for improved computer access security, the method including protecting an access record to prevent password access to a computer via the access record, creating an alternate access record corresponding to the protected record, enabling password access to the computer via the alternate record, providing the alternate record with the access level of the protected record, and configuring the alternate record to indicate a supplemental security program to be executed once a correct password for the alternate record is provided.

In another aspect of the present invention the method further includes executing a shell program indicated by the protected record subsequent to the supplemental security program allowing access to the computer.

In another aspect of the present invention the protecting step includes protecting the access record of the computer running the UNIX operating system.

In another aspect of the present invention the protecting step includes protecting a root directory access record.

In another aspect of the present invention the protecting step includes protecting by modifying the access record in a /etc/passwd file.

In another aspect of the present invention the protecting step includes replacing a password of the access record with an entry indicating that password access is not allowed for the access record.

In another aspect of the present invention the creating step includes creating the alternate record in the /etc/passwd file.

In another aspect of the present invention the providing step includes assigning the alternate record with a UID=

In another aspect of the present invention the configuring step includes configuring the supplemental security program to execute a one-time-password protocol.

In another aspect of the present invention the configuring step includes configuring the supplemental security program to execute a challenge/response protocol.

In another aspect of the present invention a system is provided for improved computer access security, the system including means for protecting an access record to prevent password access to a computer via the access record, means for creating an alternate access record corresponding to the protected record, means for enabling password access to the computer via the alternate record, means for providing the alternate record with the access level of the protected record, and means for configuring the alternate record to indicate a supplemental security program to be executed once a correct password for the alternate record is provided.

In another aspect of the present invention the supplemental security program is operative to execute a shell program indicated by the protected record subsequent to the supplemental security program allowing access to the computer.

In another aspect of the present invention the computer runs the UNIX operating system.

In another aspect of the present invention the access record is a root directory access record.

In another aspect of the present invention the means for protecting is operative to modify the access record in a /etc/passwd file.

In another aspect of the present invention the means for protecting is operative to replace a password of the access record with an entry indicating that password access is not allowed for the access record.

In another aspect of the present invention the means for creating is operative to create the alternate record in the /etc/passwd file.

In another aspect of the present invention the means for providing is operative to assign the alternate record with a UID=

In another aspect of the present invention the supplemental security program is operative to execute a one-time-password protocol.

In another aspect of the present invention the supplemental security program is operative to execute a challenge/response protocol.

In another aspect of the present invention a computer-implemented program is provided embodied on a computer-readable medium, the computer program including a first code segment operative to protect an access record to prevent password access to a computer via the access record, a second code segment operative to create an alternate access record corresponding to the protected record, a third code segment operative to enable password access to the computer via the alternate record, a fourth code segment operative to provide the alternate record with the access level of the protected record, and a fifth code segment operative to configure the alternate record to indicate a supplemental security program to be executed once a correct password for the alternate record is provided.

BRIEF DESCRIPTION OF THE DRAWINGS

The present invention will be understood and appreciated more fully from the following detailed description taken in conjunction with the appended drawings in which:

FIG. 1 is a simplified pictorial illustration of an exemplary system for computer access, useful in understanding the present invention;

FIG. 2 is a simplified pictorial illustration of a system for computer access, constructed and operative in accordance with a preferred embodiment of the present invention; and

FIG. 3 is a simplified flowchart illustration of an exemplary method of operation of the system of FIG. 2, operative in accordance with a preferred embodiment of the present invention.

DETAILED DESCRIPTION OF PREFERRED EMBODIMENTS

Reference is now made to FIG. 1, which is a simplified pictorial illustration of an exemplary system for computer access, useful in understanding the present invention. In the system of FIG. 1, two computers 100 and 102 are shown accessing a computer 104, such as may be configured to run the UNIX operating system, via a network 106, such as the Internet. Computer 100 is shown transmitting to computer 104 a password for accessing the root of computer 104. Computer 104 checks the password using conventional techniques, such as by checking a corresponding record 118 in a /etc/passwd file 108. In the example shown, the root user record in /etc/passwd includes, among other things, an encrypted representation 110 of the valid password, a user ID (UID) 112 of 0, and the name of a shell program 114 that is to be executed if the password provided by computer 100 is found to be valid. Computer 102 is shown transmitting to computer 104 a key-based root access request, such as via the SSH protocol, for accessing the root of computer 104. In the example shown, computer 104 is configured to not require password access where a public/private key-based protocol is used. Computer 104 authenticates the requestor using a key database 116 in accordance with conventional techniques. Once the access request is approved, shell program 114 that is specified in the root user record in /etc/passwd 108 is preferably executed.

Reference is now made to FIG. 2, which is a simplified pictorial illustration of a system for computer access, constructed and operative in accordance with a preferred embodiment of the present invention, and to FIG. 3, which is a simplified flowchart illustration of a method of operation of the system of FIG. 2, operative in accordance with a preferred embodiment of the present invention. In the system and method of FIGS. 2 and 3, supplemental security is provided for an access level, such as root directory access, by modifying the corresponding record 118 in /etc/passwd 108 to prevent password access. This “protected record” 118 is preferably prepared by replacing the encrypted password with an entry reserved for this purpose, such as an exclamation mark as shown at 200. An alternate record 202 corresponding to protected record 118 is created in /etc/passwd 108, such as the record labeled ‘altroot’. Alternate record 202 is provided with the same access level as that of protected record 118, such as by assigning alternate record 202 a UID=0 for UNIX root access as shown at 204. Alternate record 202 also preferably requires its own password 206. Instead of indicating a shell program to be executed, alternate record 202 indicates a supplemental security program 208 to be executed once the correct password has been provided. Supplemental security program 208 preferably implements a security protocol that is stronger than the basic reusable password protocol, such as a one-time-password protocol or a challenge/response protocol such as CHAP.

Thus, to gain entry to a desired access level, computer 100 must request access via alternate record 202, as password access to protected record 118 is prevented, and provide the correct password. Supplemental security program 208 is then executed, requiring additional validation and/or authentication of computer 100. Once supplemental security program 208 approves the access request, supplemental security program 208 preferably executes shell program 114 that is specified in protected record 118 in /etc/passwd 108.

It will be seen that computer 102 may access computer 104 with a key-based root access request, and that such access is not affected by the modification to password-based access as described above.

It is appreciated that one or more of the steps of any of the methods described herein may be omitted or carried out in a different order than that shown, without departing from the true spirit and scope of the invention.

While the methods and apparatus disclosed herein may or may not have been described with reference to specific computer hardware or software, it is appreciated that the methods and apparatus described herein may be readily implemented in computer hardware or software using conventional techniques.

While the present invention has been described with reference to one or more specific embodiments, the description is intended to be illustrative of the invention as a whole and is not to be construed as limiting the invention to the embodiments shown. It is appreciated that various modifications may occur to those skilled in the art that, while not specifically shown herein, are nevertheless within the true spirit and scope of the invention. 

1. A method for improved computer access security, the method comprising: protecting an access record to prevent password access to a computer via said access record; creating an alternate access record corresponding to said protected record; enabling password access to said computer via said alternate record; providing said alternate record with the access level of said protected record; and configuring said alternate record to indicate a supplemental security program to be executed once a correct password for said alternate record is provided.
 2. A method according to claim 1 and further comprising executing a shell program indicated by said protected record subsequent to said supplemental security program allowing access to said computer.
 3. A method according to claim 1 wherein said protecting step comprises protecting said access record of said computer running the UNIX operating system.
 4. A method according to claim 3 wherein said protecting step comprises protecting a root directory access record.
 5. A method according to claim 3 wherein said protecting step comprises protecting by modifying said access record in a /etc/passwd file.
 6. A method according to claim 5 wherein said protecting step comprises replacing a password of said access record with an entry indicating that password access is not allowed for said access record.
 7. A method according to claim 5 wherein said creating step comprises creating said alternate record in said /etc/passwd file.
 8. A method according to claim 4 wherein said providing step comprises assigning said alternate record with a UID=0.
 9. A method according to claim 1 wherein said configuring step comprises configuring said supplemental security program to execute a one-time-password protocol.
 10. A method according to claim 1 wherein said configuring step comprises configuring said supplemental security program to execute a challenge/response protocol.
 11. A system for improved computer access security, the system comprising: means for protecting an access record to prevent password access to a computer via said access record; means for creating an alternate access record corresponding to said protected record; means for enabling password access to said computer via said alternate record; means for providing said alternate record with the access level of said protected record; and means for configuring said alternate record to indicate a supplemental security program to be executed once a correct password for said alternate record is provided.
 12. A system according to claim 11 wherein said supplemental security program is operative to execute a shell program indicated by said protected record subsequent to said supplemental security program allowing access to said computer.
 13. A system according to claim 11 wherein said computer runs the UNIX operating system.
 14. A system according to claim 13 wherein said access record is a root directory access record.
 15. A system according to claim 13 wherein said means for protecting is operative to modify said access record in a /etc/passwd file.
 16. A system according to claim 15 wherein said means for protecting is operative to replace a password of said access record with an entry indicating that password access is not allowed for said access record.
 17. A system according to claim 15 wherein said means for creating is operative to create said alternate record in said /etc/passwd file.
 18. A system according to claim 14 wherein said means for providing is operative to assign said alternate record with a UID=0.
 19. A system according to claim 11 wherein said supplemental security program is operative to execute a one-time-password protocol.
 20. A computer-implemented program embodied on a computer-readable medium, the computer program comprising: a first code segment operative to protect an access record to prevent password access to a computer via said access record; a second code segment operative to create an alternate access record corresponding to said protected record; a third code segment operative to enable password access to said computer via said alternate record; a fourth code segment operative to provide said alternate record with the access level of said protected record; and a fifth code segment operative to configure said alternate record to indicate a supplemental security program to be executed once a correct password for said alternate record is provided. 